package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import java.util.List;
import java.util.Map;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment entity);

    Comment selectByPrimaryKey(Long id);

    List<Comment> selectAll();

    int updateByPrimaryKey(Comment entity);

    List<Comment> selectForList(CommentQueryObject qo);

    List<Comment> selectForDynamic(CommentQueryObject qo);

    List<Map> selectTravelCommentForCount(TravelQueryObject qo);

    List<Map> selectStrategyCommentForCount(StrategyCommentQueryObject qo);

    int selectCommentCount(Long id);

    List<Map> selectOneCommentCount(Long id);
}